package com.bw.kf.playvideo

import com.example.common.mvi.MviIntent

/**
 * 播放视频页面的意图
 */
sealed class PlayVideoIntent : MviIntent {
    object InitializePlayer : PlayVideoIntent()
    object PlayVideo : PlayVideoIntent()
    object PauseVideo : PlayVideoIntent()
    data class SeekTo(val position: Long) : PlayVideoIntent()
    object ToggleLike : PlayVideoIntent()
    object ToggleCollect : PlayVideoIntent()
    data class ShowComments(val datatype: Int, val itemid: String) : PlayVideoIntent()
    data class SendComment(val datatype: Int, val itemid: String, val content: String) : PlayVideoIntent()
    data class SendReply(val datatype: Int, val itemid: String, val content: String, val parentId: Int, val replyToUserId: Int? = null, val replyToUserName: String? = null) : PlayVideoIntent()
    data class LikeComment(val commentId: Int) : PlayVideoIntent()
    object ShowReward : PlayVideoIntent()
}